package com.kust.smarthome.web.controller;

import com.kust.smarthome.web.dto.ShopDto;
import com.kust.smarthome.web.model.User;
import com.kust.smarthome.web.test.MainPartExtractor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;
import java.util.List;

@RestController
@RequestMapping("/syntax")
@Api(value = "语法分析", tags = {"syntax-tag"})
public class SyntaxanalysisController {
    @GetMapping("")
    @ApiOperation(value = "获取购物车所有信息")
    public String list(String message) {
        return MainPartExtractor.getMainPart(message);
    }
}
